tests: Sanitize
authorBenjamin Otte <otte@redhat.com>
Thu, 14 Aug 2014 22:11:35 +0000 (00:11 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 14 Aug 2014 22:13:06 +0000 (00:13 +0200)
gcc was unhappy again.

tests/testtextview.c

index c46a59b69e2912af1cb7cb74c46fe654622ccfc1..0cfd0a15edf4b84e3f57344efa78c16569f28577 100644 (file)
@@ -20,12 +20,12 @@ my_text_view_init (MyTextView *text_view)
 {
 }
 
-static void my_text_view_draw_layer (GtkWidget         *widget,
+static void my_text_view_draw_layer (GtkTextView       *textview,
                                     GtkTextViewLayer   layer,
                                     cairo_t           *cr)
 {
   if (layer == GTK_TEXT_VIEW_LAYER_BELOW)
-    draw_background (widget, cr);
+    draw_background (GTK_WIDGET (textview), cr);
 }
 
 static void